<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			.d1 {
				display: flex;
				background-color: #00FFFF;
				height: 400px;
				width: 350px;
				flex-direction: row;
				justify-content: space-between;
				align-content: space-between;
				align-items: flex-end;
				flex-wrap: wrap;
			}
			
			.item {
				width: 100px;
				height: 100px;
				background-color: red;
			}
			
			.d2 {
				display: flex;
				background-color: yellow;
				height: 400px;
				width: 500px;
				flex-direction: row;
				justify-content: space-between;
				align-content: space-between;
				align-items: flex-end;
				flex-wrap: wrap;
			}
		</style>
	</head>
	<body>
		<div class="d1">
			<div class="item">1</div>
			<div class="item" style="height: 200px;">2</div>
			<div class="item" style="align-self: flex-start;">3</div>
			<div class="item">4</div>
		</div>
		<div class="d2">
			<div class="item" style="height: 200px;flex: 1;">1</div>
			<div class="item" style="height: 200px;flex: 1;">2</div>
			<div class="item" style="height: 200px;flex: 1;">3</div>
		</div>
	</body>
</html>
